<?php require_once SYSTEM . '/HTMLHelper.php';?>
<!--begin congtent -->
<div class="content">
    <!--begin offer-left-->
    <div class="offer-left">
        <div id="request_menu_2" class="offer-left-caption" onclick="divMenuOnclick('request_menu','2');">
            <div style="float: left; padding-left: 5px;">
                <a href="#" style="font-size: 14px; color: #5b8aff; font-weight: bold; text-decoration: none;">Top Category</a>
            </div>
        </div>
        <div id="request_menu_sub_2" class="offer-left-menu" style="display: block;">
            <?php foreach($this->ViewData['listCat'] as $cat) { ?>
		    	<div class="offer-left-menu-cell">
		        	<a style="font-size: 12px; color: #718fb3; font-weight: bold; text-decoration: none;" href="/Offer/ListOffer?category=<?php echo $cat['_id'] ?>"><?php echo $cat['Name']; ?></a>
		        </div>
		    <?php } ?>
        </div>

        <div id="request_menu_3" class="offer-left-caption" onclick="divMenuOnclick('request_menu','3');">
            <div style="float: left; padding-left: 5px;">
                <a href="#" style="font-size: 14px; color: #5b8aff; font-weight: bold; text-decoration: none;">Top Location</a>
            </div>
        </div>
        <div id="request_menu_sub_3" class="offer-left-menu" style="display: block;">
            <div class="offer-left-menu-cell">
                <a href="/Request/StateProvince?spId=8255&countryCode=VN" style="font-size: 12px; color: #718fb3; font-weight: bold; text-decoration: none;">H&#224; Nội (276)</a>
            </div>   
            <div class="offer-left-menu-cell">
                <a href="/Request/StateProvince?spId=8255&countryCode=VN" style="font-size: 12px; color: #718fb3; font-weight: bold; text-decoration: none;">H&#224; Nội (276)</a>
            </div> 
            <div class="offer-left-menu-cell">
                <a href="/Request/StateProvince?spId=8255&countryCode=VN" style="font-size: 12px; color: #718fb3; font-weight: bold; text-decoration: none;">H&#224; Nội (276)</a>
            </div> 
        </div>
    </div>
    <!--end offer-left-->
    <!--begin offer-right-->
    <div class="offer-right">
        <div class="offer-right-caption" style="margin-top: 10px">
            <div style="float: left; padding-left: 10px; width: 480px; padding: 5px;">
                <label style="font-size: 14px; color: #5b8aff; font-weight: bold">Create New Offer</label>
            </div>
        </div>
        <div class="offer-right-list-offer">
            <div id="OfferCreating" class="CreatingForm">
      

        <div class="offer-detail-popup" id="DetailDiv">
            <div class="offer-detail-popup-name">
                <span id="txtDetailName"><?php echo $this->Model['result']->Name; ?></span>
            </div>
            <div class="offer-detail-popup-cell">
                <div style="float: left; padding: 0 5px; width: 120px;">
                    <img id="imgDetailImage" alt="Default" height="120px" width="120px" src="/Upload/Want/<?php echo $this->Model['result']->Image; ?>" />
                </div>
                <div style="float: left; width: 200px; height: 20px;">
                    <div style="float: left; padding: 1px 0;">
                        <img alt="/" src="../Content/Image/migiv2/location.png" />
                    </div>
                    <div style="float: left; padding: 3px 5px; font-style: italic; font-size: 12px;">
                        Location
                    </div>
                </div>
                <div style="float: left; width: 178px; border: 1px dashed #105da8; padding: 5px 10px;
                    min-height: 60px; color: #000000; background-color: #ffffff;">
                    <span id="txtDetailLocation"><?php echo $this->Model['result']->Location; ?></span>
                    <input type="hidden" id="hdDetailLocation" value="" />
                </div>
                <div style="float: left; width: 180px; padding: 0 10px; padding-top: 5px; min-height: 25px;">
                    <div style="float: left; width: 120px;">
                        <input id="" class="btDetectLocation" style="width: 94px" type="button" value="Find Location" />
                    </div>
                    <div style="float: left; padding: 0 2px;">
                        <img style="cursor: pointer;" class="btShareFacebook" alt="/" src="../Content/Image/migiv2/facebook.png" />
                    </div>
                    <div style="float: left; padding: 0 2px;">
                        <img style="cursor: pointer;" class="btShareTwister" alt="/" src="../Content/Image/migiv2/twitter.png" />
                    </div>
                </div>
            </div>
            <div class="offer-detail-popup-cell">
                <div style="float: left; width: 330px; height: 20px;">
                    <div style="float: left; padding: 1px 0;">
                        <img alt="/" src="../Content/Image/migiv2/description.png" />
                    </div>
                    <div style="float: left; padding: 2px 5px; font-style: italic; font-size: 12px;">
                        Description
                    </div>
                </div>
                <div style="float: left; width: 330px; border: 1px dashed #105da8; padding: 5px 0;
                    height: 100px; color: #000000; background-color: #ffffff; overflow: auto">
                    <span id="txtDetailDescription"><?php echo $this->Model['result']->Description; ?></span>
                </div>
            </div>
            <div class="offer-detail-popup-cell">
                <div style="float: left; width: 330px; height: 20px;">
                    <div style="float: left; padding: 1px 0;">
                        <img alt="/" src="../Content/Image/migiv2/owner.png" />
                    </div>
                    <div style="float: left; padding: 2px 5px; font-style: italic; font-size: 12px;">
                        Owner
                    </div>
                </div>
                <div style="float: left; width: 330px; border: 1px dashed #105da8; padding: 5px 0;
                    min-height: 20px; color: #000000; background-color: #ffffff;">
                    <span id="txtDetailOwner"><?php echo $this->Model['result']->OwnerName; ?></span>
                </div>
            </div>
            <div class="offer-detail-popup-cell">
                <div style="float: left; width: 330px; height: 20px;">
                    <div style="float: left; padding: 1px 0;">
                        <img alt="/" src="../Content/Image/migiv2/category.png" />
                    </div>
                    <div style="float: left; padding: 2px 5px; font-style: italic; font-size: 12px;">
                        Category
                    </div>
                </div>
                <div style="float: left; width: 330px; border: 1px dashed #105da8; padding: 5px 0;
                    min-height: 20px; color: #000000; background-color: #ffffff;">
                    <span id="txtDetailCategory"><?php echo $this->Model['result']->Category; ?></span>
                </div>
            </div>
            <div class="offer-detail-popup-cell">
                <div style="float: left; width: 330px; height: 20px;">
                    <div style="float: left; padding: 1px 0;">
                        <img alt="/" src="../Content/Image/migiv2/datetime.png" />
                    </div>
                    <div style="float: left; padding: 2px 5px; font-style: italic; font-size: 12px;">
                        Create date
                    </div>
                </div>
                <div style="float: left; width: 330px; border: 1px dashed #105da8; padding: 5px 0;
                    min-height: 20px; color: #000000; background-color: #ffffff;">
                    <span id="txtDetailCreateDate">1/3/2011</span>
                </div>
            </div>
            
            
            <div class="offer-detail-popup-cell" style="padding-bottom: 10px;" id="DetailButtonPanel">
                
                <form action ="/Want/DeleteWant" method ="POST">
                       <input type="hidden" name="wantID" value="<?php echo $this->Model['result']->ID; ?>"/>
                       <input id="btRequest" type="submit" style="float: right; margin-right: 10px;" value="delete" name="submit" class="ButtonRequest" />                                                                                    
               </form>
               <form action="/Want/EditWant" method="POST">
                       <input type="hidden" name="wantID" value="<?php echo $this->Model['result']->ID; ?>">
                       <input id="btRequest" type="submit" style="float: right; margin-right: 10px;" value="Edit" name="submit" class="ButtonRequest">                                                                                    
               </form>
               
            </div>
            
        </div>
    </div>	               
        </div>
    </div>
    <div style="background-color: #5a8aff; height: 20px; width: 960px; float: left;"></div>
</div>